package cate.common.table.farm.island.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "迷失神庙守卫")
public class IslandGuardRow extends ERow {
    @NoteField(value = "层级")
    public int floor;

    @NoteField(value = "关卡")
    public int level;

    @NoteField(value = "守卫类型")
    public int type;

    @NoteField(value = "怪物分组")
    public int group;

    @NoteField(value = "是否存在2队")
    public boolean hasTeam2;

    @NoteField(value = "增益分组")
    public int gainGroup;

    @NoteField(value = "击杀奖励")
    public String rewardStr;

    @NoteField("难度修正系数")
    public double difficultCoeff;


    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID",0);
        this.floor = xrw.getInteger("层级",0);
        this.level = xrw.getInteger("关卡",0);
        this.type = xrw.getByte("守卫类型", (byte) 1);
        this.group = xrw.getInteger("怪物分组");
        this.hasTeam2 = xrw.getBoolean("是否存在2队", false);
        this.gainGroup = xrw.getInteger("增益分组",0);
        this.rewardStr = xrw.getString("击杀奖励");
        this.difficultCoeff = xrw.getDouble("难度修正系数",0d);
    }
}
